package com.zline.foodraise.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by heshantao on 15/7/21.
 * 精简版用户
 */
public class CustomerUserBean implements Parcelable{
    //用户头像地址
    String avatarPicUrl;
    //是否关注 1代表关注
    int isAttention;
    //昵称
    String nickName;
    //签名
    String signature;
    //用户ID
    long userId;
    //认证说明
    String identificateInfo;
    //认证类别：0-未认证，1-认证大V，2-活跃用户
    int identificateType;

    public CustomerUserBean() {
    }

    public CustomerUserBean(String avatarPicUrl, String identificateInfo,
                            int identificateType, int isAttention, String nickName,
                            String signature, long userId) {
        this.avatarPicUrl = avatarPicUrl;
        this.identificateInfo = identificateInfo;
        this.identificateType = identificateType;
        this.isAttention = isAttention;
        this.nickName = nickName;
        this.signature = signature;
        this.userId = userId;
    }

    public String getAvatarPicUrl() {
        return avatarPicUrl;
    }

    public void setAvatarPicUrl(String avatarPicUrl) {
        this.avatarPicUrl = avatarPicUrl;
    }

    public int getIsAttention() {
        return isAttention;
    }

    public void setIsAttention(int isAttention) {
        this.isAttention = isAttention;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getIdentificateInfo() {
        return identificateInfo;
    }

    public void setIdentificateInfo(String identificateInfo) {
        this.identificateInfo = identificateInfo;
    }

    public int getIdentificateType() {
        return identificateType;
    }

    public void setIdentificateType(int identificateType) {
        this.identificateType = identificateType;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.avatarPicUrl);
        dest.writeInt(this.isAttention);
        dest.writeString(this.nickName);
        dest.writeString(this.signature);
        dest.writeLong(this.userId);
        dest.writeString(this.identificateInfo);
        dest.writeInt(this.identificateType);
    }

    protected CustomerUserBean(Parcel in) {
        this.avatarPicUrl = in.readString();
        this.isAttention = in.readInt();
        this.nickName = in.readString();
        this.signature = in.readString();
        this.userId = in.readLong();
        this.identificateInfo = in.readString();
        this.identificateType = in.readInt();
    }

    public static final Creator<CustomerUserBean> CREATOR = new Creator<CustomerUserBean>() {
        public CustomerUserBean createFromParcel(Parcel source) {
            return new CustomerUserBean(source);
        }

        public CustomerUserBean[] newArray(int size) {
            return new CustomerUserBean[size];
        }
    };
}
